<div style="text-align: center">
    <h1><?php echo $this->titulo?></h1> 
</div>

<?php
$form = $this->form;
$form->prepare(); 

$form->setAttributes(array(
                    'action' => $this->url.'/application/formulario/recibe',
                    'method' => 'post'
));
$formLabel = $this->plugin('formLabel');
echo $this->form()->openTag($form);
?>
<hr />

<div class="jumbotron">
    <div class="form_element">
    <?php
        $apellido_label = $form->get('apellido_label');
        echo $formLabel->openTag().$apellido_label->getOption('label')."  ";
        echo $this->formLabel($apellido_label);
        echo $this->formElementErrors($apellido_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $nombre_label = $form->get('nombre_label');
        echo $formLabel->openTag().$nombre_label->getOption('label')."  ";
        echo $this->formLabel($nombre_label);
        echo $this->formElementErrors($nombre_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $cedula_label = $form->get('cedula_label');
        echo $formLabel->openTag().$cedula_label->getOption('label')."  ";
        echo $this->formLabel($cedula_label);
        echo $this->formElementErrors($cedula_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $matricula_label = $form->get('matricula_label');
        echo $formLabel->openTag().$matricula_label->getOption('label')."  ";
        echo $this->formLabel($matricula_label);
        echo $this->formElementErrors($matricula_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $carrera_label = $form->get('carrera_label');
        echo $formLabel->openTag().$carrera_label->getOption('label')."  ";
        echo $this->formLabel($carrera_label);
        echo $this->formElementErrors($carrera_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $telefono_label = $form->get('telefono_label');
        echo $formLabel->openTag().$telefono_label->getOption('label')."  ";
        echo $this->formLabel($telefono_label);
        echo $this->formElementErrors($telefono_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $email_label = $form->get('email_label');
        echo $formLabel->openTag().$email_label->getOption('label')."  ";
        echo $this->formLabel($email_label);
        echo $this->formElementErrors($email_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $asignatura_label = $form->get('asignatura_label');
        echo $formLabel->openTag().$asignatura_label->getOption('label')."  ";
        echo $this->formLabel($asignatura_label);
        echo $this->formElementErrors($asignatura_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $profesor_label = $form->get('profesor_label');
        echo $formLabel->openTag().$profesor_label->getOption('label')."  ";
        echo $this->formLabel($profesor_label);
        echo $this->formElementErrors($profesor_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $motivo_label = $form->get('motivo_label');
        echo $formLabel->openTag().$motivo_label->getOption('label')."  ";
        echo $this->formLabel($motivo_label);
        echo $this->formElementErrors($motivo_label);
        echo $formLabel->closeTag();
    ?>
    </div>

    <div class="form_element">
    <?php
        $docadj_label = $form->get('docadj_label');
        echo $formLabel->openTag().$docadj_label->getOption('label')."  ";
        echo $this->formLabel($docadj_label);
        echo $this->formElementErrors($docadj_label);
        echo $formLabel->closeTag();
    ?>
    </div>
</div>

<br>


<?php echo $this->form()->closeTag($form) ?>

<div>
	<p>		
	 <?php               
              $form = $this->form;
              $form->prepare();
                $form->setAttributes(array(
                    'action' => $this->url.'/application/derivador/deriva',
                    'method' => 'post'
                ));
                
                $formLabel = $this->plugin('formLabel');
                echo $this->form()->openTag($form);

//***********************************************************************************************************
//                echo $this->formHidden($form->get('id_oculto'));
//                echo $this->formHidden($form->get('rol_oculto'));
//***********************************************************************************************************

                echo $this->formHidden($form->get('mesa_oculto'));
                echo $this->formElement($form->get('derivar'));
                
                echo $this->form()->closeTag(); ?>
		</p>

	<tab align="left">	
		 <?php               
                $form = $this->form;
                $form->prepare();
                $form->setAttributes(array(
                    'action' => $this->url.'/application/lista/lista',
                    'method' => 'post'
                ));
                
                $formLabel = $this->plugin('formLabel');
                echo $this->form()->openTag($form);

//***********************************************************************************************************
//                echo $this->formHidden($form->get('id_oculto'));
//                echo $this->formHidden($form->get('rol_oculto'));
//                echo $this->formHidden($form->get('mesa_oculto'));
//***********************************************************************************************************

                echo $this->formElement($form->get('imprime'));
                
                echo $this->form()->closeTag(); ?>
	</tab>
     
       <tab align="left">		
		 <?php               
                $form = $this->form;
                $form->prepare();
                $form->setAttributes(array(
                    'action' => $this->url.'/application/lista/lista',
                    'method' => 'post'
                ));
                
                $formLabel = $this->plugin('formLabel');
                echo $this->form()->openTag($form);

//***********************************************************************************************************
//                echo $this->formHidden($form->get('id_oculto'));
//                echo $this->formHidden($form->get('rol_oculto'));
//                echo $this->formHidden($form->get('mesa_oculto'));
//***********************************************************************************************************

                echo $this->formElement($form->get('listasol'));               
                echo $this->form()->closeTag(); ?>
       </tab>

    
</div>




